package com.java1412.service;

import com.java1412.entity.Payment;
import com.java1412.utils.CommonResult;
import org.springframework.stereotype.Component;

/**
 * @author java1412
 * @create 2022-09-19 17:10
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回，---PaymentFallbackService", new Payment(id, "ErrorSerial"));
    }
}
